<?php

namespace App\Http\Middleware\Applet;

use App\Kuafu\Common\Enum\CommonCodeEnum;
use App\Kuafu\Common\Exceptions\CommonException;
use App\Kuafu\Dashboard\Service\PosOnlineService;
use App\Kuafu\Order\Enum\OrderCodeEnum;
use App\Kuafu\Order\Exceptions\OrderException;
use App\Kuafu\Shop\Enum\CodeEnum;
use App\Kuafu\Shop\Enum\ShopCodeEnum;
use App\Kuafu\Shop\Exceptions\ShopException;
use App\Kuafu\Shop\Service\ShopService;
use Closure;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Log;


class DouyinAppletRequest
{

    public function handle(Request $request, Closure $next)
    {
        $requestAll = $request->all();
        $headerAll  = $request->header();

        Log::channel('douyin')->info('Dy_callback_request', [
            'request' => $requestAll,
            'header'  => $headerAll
        ]);

        return $next($request);
    }
}
